home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / disk / upcopy60.zip / UPCSYNC.BAT < prev    next >
DOS Batch File  |  1995-09-22  |  728b  |  27 lines

  1. @ECHO OFF > SEARCH.LIS
  2. IF NOT "%3"=="" GOTO UNREADONLY
  3. IF NOT "%2"=="" GOTO NEXT
  4. ECHO.
  5. ECHO E.G. UPCSYNC C:\ D:\
  6. ECHO.
  7. ECHO This is an example batch file to synchronize two directories
  8. ECHO leaving out certain files. It sets a list of files read-
  9. ECHO only and then runs UPCOPY. You will probably need to
  10. ECHO add/remove some files from the list. If you 'break out'
  11. ECHO with ctrl-c you need to type 'UPCSYNC C:\ D:\ -R' to remove the
  12. ECHO read-only status. 
  13. ECHO.
  14. GOTO END
  15. :NEXT
  16. ATTRIB +R %1AUTOEXEC.BAT
  17. ATTRIB +R %1CONFIG.SYS
  18. ATTRIB +R %2AUTOEXEC.BAT
  19. ATTRIB +R %2CONFIG.SYS
  20. UPCOPY %1 %2
  21. :UNREADONLY
  22. ATTRIB -R %1AUTOEXEC.BAT
  23. ATTRIB -R %1CONFIG.SYS
  24. ATTRIB -R %2AUTOEXEC.BAT
  25. ATTRIB -R %2CONFIG.SYS
  26. :END
  27.